import { registerAppCounterProvider } from '@ibiz-template/runtime';
import { AppCounterPlugin } from './counter';
import { AppCounterPluginProvider } from './counter.provider';

export function presetAppCounterPluginProvider(): void {
  // 全局注册计数器适配器, APPCOUNTER是插件类型，index2CustomCounterId是插件标识
  registerAppCounterProvider(
    'APPCOUNTER_index2CustomCounterId',
    () => new AppCounterPluginProvider(),
  );
}

export { AppCounterPlugin, AppCounterPluginProvider };
